package com.loop.homework;

public class Teacher extends Person{
    //职称属性
    private String called;
    //部门属性
    private String department;

    public Teacher() {
    }

    public Teacher(String called, String department) {
        this.called = called;
        this.department = department;
    }

    @Override
    public void messagePrint(){
        System.out.println("编号:"+getId()+",姓名:"+getName()+",职称:"+this.called+",部门:"+this.department);
    }

    public String getCalled() {
        return called;
    }

    public void setCalled(String called) {
        this.called = called;
    }

    public String getDepartment() {
        return department;
    }

    public void setDepartment(String department) {
        this.department = department;
    }
}
